package TestDemo1;

public class Test {
    public static void main1(String[] args) {
        Student student1 = new Student("张三",18,56);
        Student student2 = new Student("李四",20,62);
        AgeCompare ageCompare = new AgeCompare();
        if(ageCompare.compare(student1,student2)>0){
            System.out.println("student1 > student2");
        } else{
            System.out.println("student1 < student2");
        }

    }
}
